<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!--顶部进度加载库-->
<script src='${pageContext.request.contextPath}/themes/plugin/nprogress-0.2.0/nprogress.js'></script>
<link rel='stylesheet' href='${pageContext.request.contextPath}/themes/plugin/nprogress-0.2.0/nprogress.css'/>
<!--顶部进度加载库 end-->
<!-- jquery 文件 -->
<script src="${pageContext.request.contextPath}/scripts/jquery/jquery.min.1.11.1.js" type="text/javascript" charset="utf-8"></script>
<!-- easyui核心 -->
<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/jquery-easyui/jquery-easyui-1.5.2/jquery.min.js" charset="utf-8"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/jquery-easyui/jquery-easyui-1.5.2/jquery.easyui.min.1.5.2.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/jquery-easyui/jquery-easyui-1.5.2/locale/easyui-lang-zh_CN.js" charset="utf-8"></script>

<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/jquery/jquery.jdirk.js" charset="utf-8"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/jquery/jquery.blockUI.js" charset="utf-8"></script>

<!-- easyui扩展 -->
<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/jquery-easyui/jquery-easyui-extensions/jquery.easyui.min.exp.js" ></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/jquery-easyui/jquery-easyui-extensions/jquery.insdep-extend.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/jquery-easyui/jquery-easyui-extensions/jquery-easyui.plugin.js" type="text/javascript"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/jquery-easyui/jquery-easyui-extensions/datagrid/datagrid-detailview.js" type="text/javascript"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/jquery-easyui/jquery-easyui-extensions/checkbox/easyui-checkbox.js" type="text/javascript"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/jquery-easyui/jquery-easyui-extensions/radiobox/easyui-radiobox.js" type="text/javascript"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/jquery-easyui/jquery-easyui-extensions/initBox.js" charset="utf-8"></script>
<!--  Easyui遮罩层-->
<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/jquery-easyui/jquery-easyui-extensions/loading/jeasyui.extensions.base.loading.js" charset="utf-8"></script>
<!-- linkbutton -->
<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/jquery-easyui/jquery-easyui-extensions/linkbutton/jeasyui.extensions.linkbutton.setPlain.js" charset="utf-8"></script>
<!-- panel -->
<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/jquery-easyui/jquery-easyui-extensions/panel/jeasyui.extensions.panel.iframe.js" charset="utf-8"></script>
<!-- window -->
<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/jquery-easyui/jquery-easyui-extensions/window/jeasyui.extensions.window.autoCenter.js" charset="utf-8"></script>
<!-- menu -->
<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/jquery-easyui/jquery-easyui-extensions/menu/jeasyui.extensions.menu.js" charset="utf-8"></script>
<!-- dialog -->
<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/jquery-easyui/jquery-easyui-extensions/dialog/jeasyui.extensions.dialog.sealed.js" charset="utf-8"></script>
<!-- dialog窗口初始化 -->
<script type="text/javascript" src="${pageContext.request.contextPath}/common/js/easyuiDialog.js" charset="utf-8"></script>
<!-- Datagrid -->
<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/jquery-easyui/jquery-easyui-extensions/datagrid/jeasyui.extensions.datagrid.all.quote.js" charset="utf-8"></script>
<%--<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/jquery-easyui/jquery-easyui-extensions/datagrid/jeasyui.extensions.datagrid.renderRow.js" charset="utf-8"></script>--%>
<!-- jeasyui.extensions.validatebox.all.quote-->
<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/jquery-easyui/jquery-easyui-extensions/validatebox/jeasyui.extensions.validatebox.all.quote.js" charset="utf-8"></script>
<!-- jeasyui.extensions.form.autoFocus.js-->
 <script type="text/javascript" src="${pageContext.request.contextPath}/scripts/jquery-easyui/jquery-easyui-extensions/form/jeasyui.extensions.form.autoFocus.js" charset="utf-8"></script>
 
 <%--

<!-- treegrid -->
<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/jquery-easyui/jquery-easyui-extensions/treegrid/easyui-treegrid.js" charset="utf-8"></script>
--%>
 
  
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/themes/css/easyui.css" rel="stylesheet"  />
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/themes/css/easyui_animation.css " rel="stylesheet"  />
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/themes/css/easyui_plus.css" rel="stylesheet"  />
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/themes/css/insdep_theme_default.css " rel="stylesheet" />
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/themes/css/icon.css " rel="stylesheet" />
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/themes/plugin/font-awesome-4.7.0/css/font-awesome.min.css" rel="stylesheet" />
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/themes/css/form.css" rel="stylesheet" />

<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/themes/icons/icon-hamburg.css" rel="stylesheet" />
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/themes/icons/icon-other.css" rel="stylesheet" />
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/themes/icons/icon-standard.css" rel="stylesheet" />
<!-- 引用遮罩层的样式-->
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/scripts/jquery-easyui/jquery-easyui-extensions/loading/jeasyui.extensions.base.css" rel="stylesheet"  />

<!-- 引用easyui-checkbox.css  easyui-radiobox.js-->
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/themes/css/easyui-checkbox.css" rel="stylesheet" />
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/themes/css/easyui-radiobox.css" rel="stylesheet"  />
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/scripts/jquery-easyui/jquery-easyui-extensions/datagrid/jeasyui.extensions.datagrid.css" rel="stylesheet"  />
 
<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/hzyaForm.js" type="text/javascript"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/hzyaSearch.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/json2.js" type="text/javascript"></script>
 
<script language="javascript">
   
	/**全局配置参数*/
	var gloab_params = {
		rootPath : 'http://${pageContext.request.getServerName()}:${pageContext.request.getServerPort()}${pageContext.request.getContextPath()}/'
	};
	/** 获取iframe的窗口*/
	function getMyFrameContentWindow(){
		return document.getElementById('center_frame').contentWindow
	}
	/** 当前用户信息 **/
	function onAjaxError(e, xhr, opts) {
		top.$.messager.alert('请求出现异常', '错误代码【' + xhr.status + '】错误描述【'
				+ xhr.statusText + '】', 'error');
	}/*
		//ajaxError:onAjaxError;
		$.ajaxSetup({  
	        error: function(jqXHR, textStatus, errorThrown){
	        	onAjaxError(jqXHR, textStatus, errorThrown);
	        },
	        complate:function(){
	        	$.messager.alert('提示', 'ok', 'info');
	        }
	    });   */
	$(document).ajaxError(onAjaxError);
	function setFomBoxReadOnly(cssName) {
		$("." + cssName).find(":input ,select").each(function() {
			var elementType = $(this)[0].type;
			if (elementType == "text") {
				$(this).attr("readonly", true);
			} else if (elementType == 'select-one') {
				$(this).attr("disabled", true);
			} else if (elementType == 'textarea') {
				$(this).attr("readonly", true);
			}
			else if (elementType == 'radio') {
				$(this).attr("disabled", true);
			}
			
		});
	}
	
	function setFormBoxDisable(cssName) {
		$("." + cssName).find(":input ,select").each(function() {
			$(this).attr("disabled", true);
		});
	}
	function getMonthFirstDay(currentDate){
		var firstDate = new Date(currentDate);
		firstDate.setDate(1);
		return firstDate;
	}
	function getMonthLastDay(currentDate){
		var lastDate = new Date(currentDate);
		lastDate.setMonth(lastDate.getMonth()+1);
		lastDate.setDate(0);
		return lastDate;
	}
	Date.prototype.parseStr = function() {  
	var year =	this.getFullYear();
	 var M=this.getMonth()+1;  
	 var month=(M<10)?"0"+M:M;  
	 var D=this.getDate();  
	 var day=(D<10)?"0"+D:D;  
	       return year+'-'+month+'-'+day;
	}
	
	function ajaxEmpty(){
	$.ajax({
	    url : "${base}/ajaxEmpty",
	    dataType : "JSON",
	    cache : false,
	    async : false,
	    beforeSend : function(xhr) {
	    },
	    complete : function(xhr, ts) {
	    },
	    success : function(result, textStatus, xhr) {
	    },
	    error : function(xhr, errorMsg, errorObj) {
	    }
	});
	}
	function defaultSuccessHandler(data){
		var flag = data.flag;
		if (flag) {//验证成功
			$.messager.alert('提示', data.msg, 'info', function() {
						doClose();
					});
		} else {//验证失败
			$.messager.alert('保存失败', data.msg, 'error');
		}
	}
	
</script>




 